<?php

namespace App\Listeners;

use Illuminate\Auth\Events\Verified;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;

class EmailVerified
{
    /**
     * Create the event listener.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  \Illuminate\Auth\Events\Verified  $event
     * @return void
     */
    public function handle(Verified $event)
    {
        // vendor/laravel/ui/auth-backend/VerifiesEmWEails.php:51
        // 注册用户认证成功是的事件监听
        // 会话里闪存认证成功后的消息提醒
        session()->flash("success", "邮箱认证成功 ^_^");
    }
}
